/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Aug 28, 2013  2:49:50 PM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.dao.security
 * File Name : AdUserLoginDao.java
 * TODO
 */
package com.tis.database.dao.security;

import java.math.BigDecimal;
import java.util.List;

import org.hibernate.HibernateException;

import com.tis.database.dao.AbstractDao;
import com.tis.database.entitys.security.AdUserLogin;

/**
 * @author Administrator
 *
 */
public interface AdUserLoginDao extends AbstractDao<AdUserLogin, BigDecimal> {

	List<AdUserLogin> findByUserLogin(String userLogin) throws HibernateException, Exception ;	
	List<AdUserLogin> findByFirstName(String firstName);
	List<AdUserLogin> findByLastedName(String lastName);
	List<AdUserLogin> findByDescription(String description);
	List<AdUserLogin> findByIsActive(String isactive);
	List<AdUserLogin> findByIsDelete(String isdeleted);
	List<AdUserLogin> findByStatus(String status);
	AdUserLogin findByUserPassword(String user, String password);
	/** (Javadoc)
	 * @see com.tis.database.dao.AbstractDao#NextSequence(java.lang.String)
	 * Date =Sep 26, 2013 : 1:24:19 PM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	@Override
	public BigDecimal NextSequence(String name) throws HibernateException, Exception;
	
	void StampLastedUserAccess(AdUserLogin e) throws HibernateException, Exception;
	
	List<AdUserLogin> findByAll(int maxResults, String isDelete, String isActive, String status) throws HibernateException, Exception;
}
